function getDetails() {
    var storage = localStorage.getItem('detail')
    if (!storage) {
        location.assign('./index.html')
    }
    storage = JSON.parse(storage)

    $('.small-box img').attr('src', storage.hd_thumb_url)
    $('.big-box img').attr('src', storage.hd_thumb_url)
    $('.swiper-slide img').attr('src', storage.hd_thumb_url)
}
getDetails()


// $(function () {

//     $('.add_cart').on('click', function () {
//         if ($.cookie('USR')) {

//             location.assign('./carts.html')
//         } else {
//             $('.tishi').fadeIn(500)
//         }
//     })
// })